<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%--
  Created by IntelliJ IDEA.
  User: 17728
  Date: 2020/10/12
  Time: 15:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@ include file="/pages/common/head.jsp" %>
    <style type="text/css">
        .a {
            width: 60vw;
            height: 550px;

            margin: 0 auto;
            position: relative;
            top: 50px;
        }

        .b {

            height: 480px;
        }

        .d {
            text-align: center;
            position: relative;
            bottom: 0px;

        }


    </style>
</head>
<body>
<div class="a">
    <div class="b">
        <table class="table table-hover">
            <thead align="center">
            <tr align="center">
                <td colspan="6"><h3>留言板</h3></td>
            </tr>
            <tr align="center">
                <td>id</td>
                <td>标题</td>
                <td>老师id</td>
                <td>学生id</td>
                <td>发布时间</td>
                <td>查看</td>
            </tr>
            <c:forEach items="${requestScope.ms}" var="messages">
                <tr align="center">
                    <td>${messages.id}</td>
                    <td>${messages.title}</td>
                    <td>${messages.t_id}</td>
                    <td>${messages.s_id}</td>
                    <td>${messages.time}</td>
                    <td><a href="MessageServlet?action=queryMessageById&id=${messages.id}">查看</a></td>
                </tr>
            </c:forEach>
            </thead>
        </table>
    </div>

</div>
</body>
</html>
